from django.urls import path
from rest_framework.routers import DefaultRouter
from . import views

app_name = 'absent'
router = DefaultRouter(trailing_slash=False)

# http://localhost:8000/absent/absent
router.register('absent', views.AbsentViewSet, basename='absent')

urlpatterns = [
                  path('type', views.AbsentTypeViewSet.as_view(), name='absenttypes'),
                  path('responder', views.ResponderViewSet.as_view(), name='getresponder'),
              ] + router.urls
